package fr.isen.smssender.wakeup;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import fr.isen.smssender.database.DBManager;
import fr.isen.smssender.sms.*;


public class AlarmSms extends BroadcastReceiver {

    public void onReceive(Context context, Intent intent) {

        DBManager db = new DBManager(context);

        Intent sendSms = new Intent (context,SendSmsActivity.class);
        sendSms.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(sendSms);
        Log.i("ENI", "Boot Autostart démarré");
        

    }
}
